package com.netease.l.b;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.netease.image.c;

public class b
{
  private static Toast a;
  private static Toast b;

  public static void a()
  {
    if (a != null)
    {
      a.cancel();
      a = null;
    }
    if (b != null)
    {
      b.cancel();
      b = null;
    }
  }

  public static void a(Context paramContext, int paramInt)
  {
    a(paramContext, paramContext.getString(paramInt));
  }

  public static void a(Context paramContext, int paramInt1, int paramInt2, float paramFloat)
  {
    if (a == null)
      a = Toast.makeText(paramContext, "", 0);
    a.setDuration(0);
    a.setText(paramInt1);
    int i = c.a(paramContext, paramFloat);
    a.setGravity(paramInt2, 0, i);
    a.show();
  }

  public static void a(Context paramContext, String paramString)
  {
    if (a == null)
      a = Toast.makeText(paramContext, "", 0);
    a.setText(paramString);
    a.setDuration(0);
    a.setGravity(81, 0, 50);
    a.show();
  }

  public static void a(Context paramContext, String paramString, int paramInt1, int paramInt2)
  {
    if (a == null)
      a = Toast.makeText(paramContext, "", 0);
    a.setText(paramString);
    a.setDuration(paramInt1);
    a.setGravity(paramInt2, 0, 0);
    a.show();
  }

  public static void a(Context paramContext, String paramString, int paramInt1, int paramInt2, float paramFloat)
  {
    if (b == null)
      b = Toast.makeText(paramContext, "", 0);
    b.setDuration(0);
    int i = c.a(paramContext, paramFloat);
    b.setGravity(paramInt2, 0, i);
    View localView = LayoutInflater.from(paramContext).inflate(paramInt1, null, false);
    ((TextView)localView.findViewById(2131558413)).setText(paramString);
    b.setView(localView);
    b.show();
  }

  public static void a(Toast paramToast)
  {
    if (paramToast != null)
    {
      paramToast.cancel();
      paramToast.show();
    }
  }

  public static void b(Toast paramToast)
  {
    if (paramToast != null)
      paramToast.cancel();
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.l.b.b
 * JD-Core Version:    0.6.0
 */